Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(footer): Add link to remote repository #111

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

welpo
Copy link
Owner

@welpo welpo commented Aug 18, 2023

TL;DR Enhanced the remote repository linking with a new feature (`show_remote_source`) and two configuration options (`show_remote_changes`, `show_remote_source`).

Description

This PR introduces one new feature and two new options to enhance the experience of users and provide better control over the display of remote repository links.

These options are only useful if the remote_repository_url is set.

  1. Show remote changes option (show_remote_changes):

    • A new configuration option that determines if a link to the commit history of updated posts should be displayed (expands on 109).
    • Defaults to true.
  2. Show remote source option (show_remote_source):

    • Another configuration option that decides if a link to the repository of the site should be shown, displayed next to the "Powered by Zola & tabi" text.
    • New feature.
    • Defaults to true.

Changes made

  1. TOML Configuration:

    • Added show_remote_changes and show_remote_source.
  2. Tera Template:

    • Integrated the new configuration options into the Tera template.
    • Ensured that the link to the site's repository is displayed conditionally based on the show_remote_source value.
    • Cleaned up footer.hmtl template formatting for better readability.

Screenshots

When remote_repository_url is set and show_remote_source = true:

after

Adds two options, both defaulting to true if the remote repo URL is set:
* `show_remote_changes`: links the commit history of a post next to the updated date. (#109)
* `show_remote_source`: links to the site's repository on the footer.
@welpo welpo added the enhancement New feature or request label Aug 18, 2023
@welpo welpo merged commit d3167ad into main Aug 18, 2023
1 check passed
@welpo welpo deleted the feat/show-site-source branch August 18, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant